import request from "@/utils/request";

// 客户列表
export function listCustomer(query) {
  return request({
    url: "/mall/gh/customer/list",
    method: "get",
    params: query,
  });
}
//添加客户
export function addCustomer(data) {
  return request({
    url: "/mall/gh/customer",
    method: "post",
    data,
  });
}
//查询客户
export function queryCustomer(id) {
  return request({
    url: "/mall/gh/customer/" + id,
    method: "get",
  });
}
//修改
export function editCustomer(data) {
  return request({
    url: "/mall/gh/customer",
    method: "put",
    data,
  });
}
//删除
export function removeCustomer(id) {
  return request({
    url: "/mall/gh/customer/" + id,
    method: "delete",
  });
}
